class_name PlayerDownState
extends GameplayState

@onready var player: Player = $"../../../"


func _on_enter() -> void:
	player.animator.play(&"down")
	
	player.player_tag_manager.add_tag(player.player_tag_manager.State_Air_Down)


func _on_update(delta: float) -> void:
	player.velocity.y -= player.player_stats.fall_gravity * delta


func _on_exit() -> void:
	player.player_tag_manager.remove_tag(player.player_tag_manager.State_Air_Down)
